package com.xinruke.hostels.dailymanage.mapper;

import com.xinruke.hostels.common.po.YwRuzhuDingdan;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface YwRuzhuDingdanMapper extends Mapper<YwRuzhuDingdan> {

    List<YwRuzhuDingdan> listTodayCheckIn(@Param("jiudianId") Integer jiudianId, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    List<YwRuzhuDingdan> listTodayLeft(@Param("jiudianId") Integer jiudianId, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    /**
     * 获取现在入住的总人数
     */
    int getCheckInPeopleCount(Integer jiudianId);
}